
package ui;
import java.awt.event.ActionEvent;
import javax.swing.AbstractAction;
import javax.swing.JFrame;


public class ExitAction extends AbstractAction {

	private JFrame mainInterface;

	public ExitAction(JFrame mainInterface, String text){
		super(text);
		this.mainInterface = mainInterface;
	}

	public void actionPerformed(ActionEvent e) { 
		
		System.exit(0);
		
	}

}